Run C program from terminal